<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Insert title here</title>
		<link href="css/table.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
		<script type="text/javascript" src="js/draftMessage.js"></script>
		<script type="text/javascript" src="js/openwindow.js"></script>		
	</head>
	<body>
		<form action="" name="messageForm" method="post">
		<input type="hidden" name="draftMessage.id" value="${draftMessage.id }">
		<input type="hidden" name="draftMessage.sendId" value="${draftMessage.sendId }">
		<input type="hidden" name="draftMessage.sendName" value="${draftMessage.sendName }">
		<input type="hidden" name="draftMessage.modulename" value="${draftMessage.modulename }">
		<input type="hidden" name="draftMessage.exnumber" value="${draftMessage.exnumber }">
		<input type="hidden" name="draftMessage.messageflag" value="${draftMessage.messageflag }">
		<input type="hidden" name="draftMessage.priority" value="${draftMessage.priority }">
		
			<div class="divborder">
				<table class="tablemail">
					<tr>
						<td width="60px">
							收件人
						</td>
						<td>
							<textarea class="textinput" readonly="readonly" id="snames"
								style="height: 30px;" name="draftMessage.receiverNames">${draftMessage.receiverNames }</textarea>
							<input type="hidden" id="sids" name="draftMessage.receiverIds"
								value="${draftMessage.receiverIds}">
						</td>
					</tr>
					<tr>
						<td width="60px"></td>
						<td>
							<a href="javascript:selectUser('s')">添加收件人</a>
						</td>
					</tr>
					<tr>
						<td width="60px">
							外部联系人
						</td>
						<td>
							<textarea class="textinput" id="outReceivers"
								style="height: 30px;" name="draftMessage.exreceivers" onkeypress="valid()">${draftMessage.exreceivers }</textarea>
						</td>
					</tr>
					<tr><td></td><td style="color:silver">多个号码中间用,隔开(13805638888,13805638888)注意","必须是非中文输入字符</td></tr>		
					<tr>
						<td valign="top" >
							正文
						</td>
						<td>
							<textarea class="textinput" id="content"
								style="height: 200px;" name="draftMessage.content" onkeyup="warn(this)">${draftMessage.content }</textarea>
						</td>
					</tr>
					<tr><td></td><td><label style="color: red;">*</label>还有<span id="warn">200</span>个字可以输入</td></tr>
					<tr><td></td><td><label style="color: red;">${info }</label></td></tr>
				</table>
				<div style="margin-left: 90px; margin-top: 5px">
					<input class="button_04" onclick="valiadValue('send')"
						type="button" value="发送" />
					&nbsp;&nbsp;
					<input class="button_04" type="button"
						onclick="valiadValue('draft')" value="存草稿" />
				</div>
			</div>
		</form>
	</body>
</html>